package com.jieshuibao.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jieshuibao.mapper.H5SignMapper;
import com.jieshuibao.model.db.H5Sign;
import com.jieshuibao.model.db.H5SignExample;

@Service
public class H5SignService{
	
	@Resource
	private H5SignMapper h5SignMapper;
	
	public void addH5Sign(H5Sign h5Sign) {
		h5SignMapper.insertSelective(h5Sign);
	}
	
	public void delH5SignById(String id) {
		h5SignMapper.deleteByPrimaryKey(id);
	}
	
	public void updateH5Sign(H5Sign h5Sign) {
		h5SignMapper.updateByPrimaryKeySelective(h5Sign);
	}
	
	public void updateH5SignByExample(H5Sign h5Sign,H5SignExample h5SignExample){
	    h5SignMapper.updateByExampleSelective(h5Sign,h5SignExample);
	}
	
	public H5Sign getH5SignById(String id) {
		return h5SignMapper.selectByPrimaryKey(id);
	}
	
	public List<H5Sign> getPageH5Sign(H5SignExample h5SignExample) {
		return h5SignMapper.selectPage(h5SignExample);
	}
	
	public int countH5Sign(H5SignExample h5SignExample) {
		return h5SignMapper.countByExample(h5SignExample);
	}
	
	public List<H5Sign> selectByExample(H5SignExample example){
	    return h5SignMapper.selectByExample(example);
	}
}
